package day1108_1;

import java.io.*;
//   文件复制案例：
//   BufferedReader    readLine()   读取  01.txt文件
//   PrintWriter       println()    写出到  01_bak.txt文件
public class R4 {
    public static void main(String[] args) throws IOException {
        BufferedReader  br=//一
                new BufferedReader( new FileReader("src\\day1108\\R1.java") );
        PrintWriter pw=new PrintWriter(new FileWriter("src\\day1108\\R1_bak.java"));
        //1.
        String line=null;
        while(   (line=br.readLine())  !=null  ){//二
            pw.println(line);//2.
        }

        pw.close();//3.
        br.close();//三
    }
}
